<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin: 15px;
            font-family: Arial;
            font-size: 12px;
        }

        .father {
            background-color: #ffff99;
            border: 1px solid #111111;
            padding: 5px;
        }

        .father div {
            padding: 10px;
            margin: 15px;
            border: 1px dashed #111111;
            background-color: #90baff;
        }

        .father p {
            border: 1px dashed #111111;
            background-color: #ff90ba;
        }

        /* .son1 {
            float: right;
        }

        .son2 {
            float: right;
        }

        .son3 {
            float: right;
        } */
    </style>
</head>

<body>
    <div class="father">
        <div class="son1">Box-1</div>
        <div class="son2">Box-2</div>
        <div class="son3">Box-3</div>
        <p>这里是浮动框外围的文字</p>
    </div>
</body>

</html>